using System;
using Newtonsoft.Json;
using System.Text;
using System.Data;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 通用审核表
	/// </summary>
	[Table("Sys_AuditLog")]
	public partial class Sys_AuditLog
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 表名
		/// </summary>
		[Column("TableID")]
		public ushort TableID { get; set; }

		/// <summary>
		/// 原表记录ID
		/// </summary>
		[Column("InfoID")]
		public int InfoID { get; set; }

		/// <summary>
		/// 审核类型
		/// </summary>
		[Column("AuditType")]
		public int AuditType { get; set; }

		/// <summary>
		/// 审核结果
		/// </summary>
		[Column("AuditResult")]
		public int AuditResult { get; set; }

		/// <summary>
		/// 审核意见
		/// </summary>
		[Column("AuditRemark")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AuditRemark { get; set; }

		/// <summary>
		/// 审核时间
		/// </summary>
		[Column("AuditDate")]
		public DateTime AuditDate { get; set; }

		/// <summary>
		/// 审核人ID
		/// </summary>
		[Column("AuditManID")]
		[JsonIgnore]
		public int AuditManID { get; set; }

		/// <summary>
		/// 审核人
		/// </summary>
		[Column("AuditManName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AuditManName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("OrgID")]
		public int OrgID { get; set; }
	}
}

